﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
	CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
	<title>信管系简介-河北大学管理学院信息管理系</title>
	<link href="CSS/index.css" rel="stylesheet" type="text/css" />
	<script src="JS/jquery-1.4.1.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
	<div id="container">
		<div class="welcom">
			<marquee direction="left" scrollamount="3" style="width: 940px"><span style="text-align:center; letter-spacing:0.5em;margin:auto;font-size:16px; color:#006">河北大学信息管理工程系欢迎您！</span></marquee>
		</div>
		<!--left start-->
		<div id="left">
			<div id="left-top">
				<!-- 焦点图切换开始 -->
				<div id="nav">
					<ul>
					<asp:Repeater ID="rptImg" runat="server">
						<ItemTemplate>
						 <li>
							<img src='UploadFiles/Five/<%#Eval("iimName")%>' text='<%# Eval("iimTitle") %>' pic='<%# Eval("iimID") %>'>
							<div>
						<%# Eval("iimTitle") %></div>
						</li>
						</ItemTemplate>
					</asp:Repeater>
					
					</ul>
					<div id="frontTextBack">
					</div>
					<div id="frontText">
					</div>
					<div id="frontTextSub">
					</div>
					<div id="BG">
					</div>
					<div id="mask">
					</div>
					<div id="back">
						<img height="300" src="" width="630"></div>
				</div>
				<!-- 焦点图切换结束 -->
			</div>
			<div id="left-bottom">
				<div id="l_b_left">
					<div class="title_top">
						<div class="title1">
							教师信息</div>
						<span class="span"><a href="Teacher.aspx">更多<< </a></span>
						<div class="clear">
						</div>
					</div>
					<hr style="margin-top: -1px; border: 1px solid #f8f8f8" />
					<div class="science_nr">
						<ul>
						<asp:Repeater ID="rptTea" runat="server">
						<ItemTemplate>
						<li><a href='TeacherDetails.aspx?Id=<%#Eval("teaID")%>'><%#Eval("teaName").ToString()%></a></li>
						</ItemTemplate>
						</asp:Repeater>	
						</ul>
					</div>
				</div>
				<div id="l_b_right">
					<div class="title_top">
						<div class="title2">
							信息速递</div>
						<span class="span"><a href="News.aspx">更多<< </a></span>
						<div class="clear">
						</div>
					</div>
					<hr style="margin-top: -1px; border: 1px solid #c0e4a7" />
					<div class="information_nr">
						<ul>
							<asp:Repeater ID="rptNews" runat="server">
						<ItemTemplate>
						<li><a href='NewsDetails.aspx?Id=<%#Eval("newsID")%>'><%#Eval("newsTitle").ToString().Length<20?(Eval("newsTitle").ToString()):(Eval("newsTitle").ToString().Substring(0,16)+"...")%></a></li>
						</ItemTemplate>
						</asp:Repeater>
						</ul>
					</div>
				</div>
			</div>
		</div>
		<!--left end-->
		<!--right start-->
		<div id="right">
			<div class="right-top">
				<div style="height: 20px; background: url(images/title4.jpg);">
					<span class="span"><a style="margin-top: 2px;" href="Notice.aspx">更多<< </a></span>
				</div>
				<div id="tongzhigonggao">
					<ul>
						<asp:Repeater ID="rptNotice" runat="server">
						<ItemTemplate>
						<li><a href="NoticeDetails.aspx?Id=<%#Eval("notID") %>"><%#Eval("notTitle").ToString().Length > 16 ? Eval("notTitle").ToString().Substring(0,16)+"..." : Eval("notTitle").ToString()%></a></li>
						</ItemTemplate>
						</asp:Repeater>
					</ul>
				</div>
			</div>
			<div class="right-center">
				<div style="height: 20px; background: url(images/title5.jpg);">
					<span class="span"><a style="margin-top: 2px;" href="Download.aspx?dowType=">更多<<< </a></span>
				</div>
				<div id="download">
					<ul>
					   <asp:Repeater ID="rptDown" runat="server">
						<ItemTemplate>
						<li><a href='DownloadDetails.aspx?dowID=<%#Eval("dowID") %>'><%#Eval("dowTitle").ToString().Length > 16 ? Eval("dowTitle").ToString().Substring(0,16)+"..." : Eval("dowTitle").ToString()%></a></li>
						</ItemTemplate>
						</asp:Repeater>
					</ul>
				</div>
			</div>
			<div class="right-bottom">
				<div class="title_top">
					<div class="title3">
						友情链接</div>
					<div class="clear">
					</div>
				</div>
				<hr style="margin-top: -1px; border: 1px solid #c0e9e5" />
				<div class="link">
					<ul>
					   <asp:Repeater ID="rptFri" runat="server">
						<ItemTemplate>
						<li><a href='<%#Eval("friUrl")%>'><%#Eval("friName")%></a></li>
						</ItemTemplate>
						</asp:Repeater>
					</ul>
				</div>
			</div>
		</div>
		<!--right end-->
	</div>
	  <script type="text/javascript">
 <!--
		  var num = 0;
		  $("#nav").hide();
		  $("li img").load(function () {
			  num++;
			  if (num == 4) {
				  $("#nav").show();
			  }
		  })
		.click(function () {

			//如果已经处于active状态，return
			if (this.className.indexOf("active") != -1) return;

			//正文文字渐隐
			$("#frontText").fadeOut();
			$("#frontTextBack").fadeOut();
			$("#frontTextSub").fadeOut();

			//active状态的图片恢复原样
			$("li img.active").fadeTo(200, 0.6)
		.removeClass("active")
		.animate({ top: 5, width: 52, left: 10 }, 300)
		.parent().css({ "color": "#aaa" });  //

			//获取数据
			var i = $(this).attr("pic");
			var t = $(this).attr("text").split("|");

			//当前
			$(this).animate({ top: -5, width: 70, height: 40, left: 1 }, 100)
		.addClass("active")
		.fadeTo(200, 1)
		.parent().css({ "color": "white" });

			$("#back").children().addClass("gray").end()
					.fadeTo(500, 0.1, function () {
						//var IMG = new Image();
						//IMG.s
						$(this).children("img").attr("src", "uploadfiles/five/" + i + ".jpg").removeClass("gray");   //更改图片
						$(this).fadeTo(500, 1, function () {
							$("#frontText").html(t[0]).fadeIn(200); //更改正文文字
						   // $("#frontTextBack").html(t[0]).fadeIn(200); //阴影文字
						   // $("#frontTextSub").html(t[1]).fadeIn(200);
						} //副标题
																);
					})
		})

		  //初始第一张图片

		  var i = 0;

		  show();

		  function show() {
			  if (i == $("li img").size()) i = 0
			  $("li img").eq(i).click();
			  i++;
			  //setTimeout(show(),1000);
		  }

		  document.oncontextmenu = function (e) { return false }

		  if (self.location.search != "") {
			  var V = self.location.search;
			  V = V.substr(1, V.length);
			  eval(V);
			  var json = "{";
			  if (option.skin == 0)
				  $("#mask").hide();
			  if (option.animate == 0) {
				  $("#nav ul").hide();
			  }
			  $("#nav").width(option.width ? option.width : 630);
			  $("#nav").height(option.height ? option.height : 300);
			  $("#back img").width($("#nav").width());
			  $("#back img").height($("#nav").height());
			  $(self.parent.document.getElementById("splash")).children().height($("#nav").height()).width($("#nav").width());
		  }
		
 //-->
	</script>
</asp:Content>